/*
 * @Author: xiaosihan 
 * @Date: 2024-07-02 01:30:37 
 * @Last Modified by: xiaosihan
 * @Last Modified time: 2024-07-02 01:59:03
 */

import { MeshStandardMaterial, DoubleSide } from "three";
import map1JPG from "./map1.jpg";
import normalMap1PNG from "./normalMap1.png";
import threeLoader from "three-base/threeLoader";

const map = threeLoader.getTexture(map1JPG);
map.repeat.set(10, 10);

const normalMap = threeLoader.getTexture(normalMap1PNG);
normalMap.repeat.set(10, 10);

// 车垫材质
export const carMatsMaterial = new MeshStandardMaterial({
    color: "#B34B32",
    metalness: 0, // 金属度，1.0是完全的金属效果  
    roughness: 0.5, // 粗糙度，0.0是完全光滑，1.0是非常粗糙  
    side: DoubleSide,
    map,
    normalMap
});